#######################
# World              ##
#######################
d:Ge/World/HLX   = 2 cm
d:Ge/World/HLY   = 2 cm
d:Ge/World/HLZ   = 2 cm
s:Ge/World/Color = "white"
s:Ge/World/Material = "G4_WATER"

#######################
# Cylinder
#######################
s:Ge/Cylinder/Type               = "TsCylinder"
s:Ge/Cylinder/Parent             = "World"
s:Ge/Cylinder/Material           = "G4_WATER"
d:Ge/Cylinder/TransX             = 0 cm
d:Ge/Cylinder/TransY             = 0 cm
d:Ge/Cylinder/TransZ             = 0 cm
d:Ge/Cylinder/RotX               = 0 deg
d:Ge/Cylinder/RotY               = 0 deg
d:Ge/Cylinder/RotZ               = 0 deg
d:Ge/Cylinder/RMin               = 0 cm
d:Ge/Cylinder/RMax               = 0.95 cm
d:Ge/Cylinder/HL                 = 1 mm
s:Ge/Cylinder/Color              = "lightblue"

###############################################
#####          Physics                  #######
###############################################
s:Ph/ListName                                         = "Fisica"
sv:Ph/Fisica/Modules                                  = 1 "g4em-livermore" 
s:Ph/Fisica/Type                                      = "Geant4_Modular"
d:Ph/Fisica/SetProductionCutLowerEdge = 10 eV
d:Ph/Fisica/CutForGamma           = 1 nm             # overrides CutForAllParticles for Gamma
d:Ph/Fisica/CutForElectron        = 1 nm             # overrides CutForAllParticles for Electron
b:Ph/Fisica/Fluorescence          = "True"           # Set to true to turn on Fluorescence
b:Ph/Fisica/Auger                 = "True"           # Set to true to turn on Auger
b:Ph/Fisica/AugerCascade          = "True"           # Set to true to turn on AugerCascade
b:Ph/Fisica/DeexcitationIgnoreCut = "True"           # Set to true to implement DeexcitationIgnoreCut
b:Ph/Fisica/PIXE                  = "True"           # Set to true to turn on PIXE

#######################
# Source - Photons
#######################
s:Ge/BeamPosition/Parent  = "World"
s:Ge/BeamPosition/Type    = "Group"
d:Ge/BeamPosition/TransX  = 0. cm
d:Ge/BeamPosition/TransY  = 0. cm
d:Ge/BeamPosition/TransZ  = -1 * Ge/Cylinder/HL mm 
d:Ge/BeamPosition/RotX    = 0 deg
d:Ge/BeamPosition/RotY    = 0. deg
d:Ge/BeamPosition/RotZ    = 180. deg

s:So/Photons50/BeamEnergySpectrumType     = "Continuous"
includeFile = XraySpectrum.txt  
s:So/Photons50/Type                       = "Beam"             # Beam, Isotropic, Emittance or PhaseSpace
s:So/Photons50/Component                  = "BeamPosition"
s:So/Photons50/BeamParticle               = "gamma"
s:So/Photons50/BeamPositionDistribution   = "Flat"        
s:So/Photons50/BeamPositionCutoffShape    = "Ellipse"          # Rectangle or Ellipse (if Flat or Gaussian)
d:So/Photons50/BeamPositionCutoffX        = Ge/Cylinder/RMax mm                # X extent of position (if Flat or Gaussian)
d:So/Photons50/BeamPositionCutoffY        = Ge/Cylinder/RMax mm                # Y extent of position (if Flat or Gaussian)
s:So/Photons50/BeamAngularDistribution    = "Gaussian"         # None, Flat or Gaussian
d:So/Photons50/BeamAngularCutoffX         = 90. deg            # X cutoff of angular distrib (if Flat or Gaussian)
d:So/Photons50/BeamAngularCutoffY         = 90. deg            # Y cutoff of angular distrib (if Flat or Gaussian)
d:So/Photons50/BeamAngularSpreadX         = 0.00001 rad        # X angular distribution (if Gaussian)
d:So/Photons50/BeamAngularSpreadY         = 0.00001 rad        # Y angular distribution (if Gaussian)
i:So/Photons50/NumberOfHistoriesInRun     = 1000000

###############################################
#####          Phase File               #######
###############################################
s:Sc/PhaseSpaceAtCylinder/Quantity                    = "PhaseSpace"
b:Sc/PhaseSpaceAtCylinder/OutputToConsole             = "True"
s:Sc/PhaseSpaceAtCylinder/Surface                     = "Cylinder/ZPlusSurface"
s:Sc/PhaseSpaceAtCylinder/OutputType                  = "ASCII" # ASCII, Binary, Limited or ROOT
s:Sc/PhaseSpaceAtCylinder/OutputFile                  = "PhaseSpace_1"
i:Sc/PhaseSpaceAtCylinder/OutputBufferSize            = 1000
b:Sc/PhaseSpaceAtCylinder/IncludeTOPASTime            = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeTimeOfFlight         = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeRunID                = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeEventID              = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeTrackID              = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeParentID             = "True"
b:Sc/PhaseSpaceAtCylinder/IncludeCreatorProcess       = "True"
b:Sc/PhaseSpaceAtCylinder/IncludeVertexInfo           = "False"
b:Sc/PhaseSpaceAtCylinder/IncludeSeed                 = "False"
s:Sc/PhaseSpaceAtCylinder/IfOutputFileAlreadyExists   = "Overwrite"

#######################
# Graphics
#######################
s:Gr/ViewA/Type             = "OpenGL"
i:Gr/ViewA/WindowSizeX      = 1024
i:Gr/ViewA/WindowSizeY      = 768
b:Gr/ViewA/IncludeAxes      = "True"
d:Gr/ViewA/Theta            = 55 deg
d:Gr/ViewA/Phi              = 20 deg
s:Gr/ViewA/Projection       = "Perspective"
d:Gr/ViewA/PerspectiveAngle = 30 deg
u:Gr/ViewA/Zoom             = 1.
d:Gr/ViewA/AxesSize = 3 cm # size of axes
b:Gr/ViewA/Active = "false" 
b:Ts/PauseBeforeQuit = "false"